﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DC_CmdCommitteeDtls.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.DC_CmdCommitteeDtls" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../Scripts/DatePicker.js"></script>
</head>
<body>
    <form id="form1" runat="server">    
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">        
            <script type="text/javascript">

                function onTextChange(sender) {
                    if (sender.get_value() == "") {
                        sender.set_text("");
                    }
                }
            </script>        
    </telerik:RadCodeBlock>
    
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="cmdSearch">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTreeView1" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="cmdExpand">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTreeView1"
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="cmdCollapse">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTreeView1" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadTreeView1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblUpperText" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" 
        Height="100%" Width="75px" Transparency="50">
        <table style="height: 100%; width: 100%" border="0">
            <tr>
                <td width="100%" align="center" valign="middle">
                    <img alt="Loading..." 
                        src="../Images/Buttons/loading.gif" 
                        style="border: 0px;" />
                </td>
            </tr>
        </table>
    </telerik:RadAjaxLoadingPanel>
                <telerik:RadGrid ID="RadGrid1" runat="server" 
                        AllowAutomaticDeletes="True" 
                        AllowFilteringByColumn="True" 
                        AllowMultiRowEdit="True" 
                        AllowMultiRowSelection="True" 
                        AllowPaging="True" 
                        AllowSorting="True" 
                        AutoGenerateColumns="False" 
                        EnableAJAX="True" 
                        EnableAJAXLoadingTemplate="True" 
                        GridLines="None" 
                        OnItemCommand="RadGrid1_ItemCommand" 
                        Width = "780px"
                        Skin="Outlook">
                    <MasterTableView 
                        AllowMultiColumnSorting="True" 
                        CellSpacing="-1" 
                        CommandItemDisplay="Top" 
                        DataKeyNames="com_cmd_seq" 
                        InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                        NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                        <CommandItemTemplate>
                            <table width="100%">
                                <tr>
                                    <td>
                                        <asp:LinkButton ID="cmdAddNew" runat="server" CausesValidation="False" 
                                            CommandName="InitInsert"                                            
                                            Visible="<%# !RadGrid1.MasterTableView.IsItemInserted && RadGrid1.EditIndexes.Count <= 0 %>">
                                        <img style="border:0px;vertical-align:middle;" alt="" 
                                        src="../Images/Buttons/AddRecord.gif" />เพิ่มคณะกรรมการ</asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </CommandItemTemplate>
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn>
                            <HeaderStyle Width="20px" />
                        </ExpandCollapseColumn>
                        <Columns>
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="15" >
                        <ItemStyle Width="15px"></ItemStyle>
                        </telerik:GridEditCommandColumn>
                        <telerik:GridButtonColumn 
                            ButtonType="ImageButton" 
                            CommandName="Delete" 
                            ConfirmText="ลบข้อมูลที่เลือก?" 
                            Text="คลิกเพื่อลบรายการ" 
                            UniqueName="column1" 
                            ItemStyle-Width="15" 
                            ConfirmDialogType="RadWindow">
                        <ItemStyle Width="15px"></ItemStyle>
                        </telerik:GridButtonColumn>                        
                        <telerik:GridBoundColumn 
                            DataField="cmm_name" 
                            HeaderText="ชื่อ - นามสกุล" 
                            UniqueName="cmm_name" 
                            FilterControlWidth="100%" 
                            AutoPostBackOnFilter="true"
                            CurrentFilterFunction="Contains" 
                            ShowFilterIcon="False">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn 
                            DataField="pos_name" 
                            HeaderText="ตำแหน่ง" 
                            UniqueName="pos_name" 
                            FilterControlWidth="100%" 
                            AutoPostBackOnFilter="true"
                            CurrentFilterFunction="Contains" 
                            ShowFilterIcon="False">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn 
                            DataField="class_name" 
                            HeaderText="ระดับ" 
                            UniqueName="class_name" 
                            FilterControlWidth="100%" 
                            AutoPostBackOnFilter="true"
                            CurrentFilterFunction="Contains" 
                            ShowFilterIcon="False">
                        </telerik:GridBoundColumn>     
                        <telerik:GridBoundColumn 
                            DataField="com_pos_name" 
                            HeaderText="ตำแหน่งคณะกรรมการ" 
                            UniqueName="com_pos_name" 
                            FilterControlWidth="100%" 
                            AutoPostBackOnFilter="true"
                            CurrentFilterFunction="Contains" 
                            ShowFilterIcon="False">
                        </telerik:GridBoundColumn>                        
                    </Columns>
                    <EditFormSettings EditFormType="WebUserControl" 
                        UserControlName="../UserControls/DC_CmdCommitteeDtls.ascx">
                        <EditColumn UniqueName="EditCommandColumn1">
                        </EditColumn>
                    </EditFormSettings>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                    </MasterTableView>
                    <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" 
                        EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
                        <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                    </ClientSettings>
                </telerik:RadGrid>
                            <asp:Label ID="lblCmdSeq" runat="server" Visible="False"></asp:Label>
                        <br />   
                
                
    </form>
</body>
</html>
